package com.group3.entity.base;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户行为基础实体
 */
@Data
public class BehaviorBase {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long userId;       // 用户ID
    private Long liveId;       // 直播间ID
    private Long productId;    // 商品ID

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableLogic
    private Integer deleted;
}
